<!-- 充值成功 -->
<template>
	<view class="box-content" :style="{ '--color': vuex_config.themeColor1 }">
		<view class="succeeded">
			<view class="box">
				<u-icon name="e730" color="#09BB07" size="140" custom-prefix='iconfont' />
				<view class="recharge">充值成功</view>
				<view class="money">+{{price}}</view>
				<view class="line"></view>
			</view>
			<view class="form">
				<view class="form-item">
					<view class="form-label">当前状态</view>
					<view class="form-content">充值成功</view>
				</view>
				<view class="form-item">
					<view class="form-label">支付方式</view>
					<view class="form-content">卡号充值</view>
				</view>
			</view>
		</view>
		<view class="succeeded-back" @click="back">
			去购物
		</view>
	</view>
</template>

<script>
	import {
		mapState
	} from 'vuex';


	export default {
		data() {
			return {
				price:''
			};
		},

		onLoad: function(options) {
			this.price = options.price
		},


		methods: {
			back(){
			  uni.switchTab({
					url: '/pages/index/index',
				});
			},
		}
	};
</script>

<style lang="scss" scoped>
	.succeeded {
		padding: 40rpx 50rpx;
		border-bottom: 1rpx solid rgba(0,0,0,.1);
		background-color: #FFFFFF;
	}
	
	.succeeded-back {
		width: 698rpx;
		height: 100rpx;
		background-color: #00A6F8;
		color: #fff;
		border-radius: 10rpx;
		margin: 80rpx auto;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	.box-content {
		min-height: 100vh;
		background-color: #F5F5F5;
	}

	.box {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.recharge {
		font-size: 26rpx;
		margin: 10rpx 0 12rpx;
	}

	.money {
		font-weight: 700;
		font-size: 40rpx;
	}

	.line {
		width: 100%;
		margin-top: 40rpx;
		border-bottom: 1rpx solid #f5f5f5;
	}

	.back {
		margin: 30rpx 0;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.form {
		margin-top: 30rpx;
		font-size: 24rpx;

		.form-item {
			display: flex;
			margin-bottom: 26rpx;

			.form-label {
				width: 150rpx;
				margin-right: 25rpx;
			}

			.form-content {
				flex: 1;
			}
		}
	}
</style>
